package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.FreeDelivery;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-07-03
 */
public interface FreeDeliveryService extends IService<FreeDelivery> {

    Page<FreeDelivery> pageList(PageUtil pageUtil, String keyword, Integer type);

    boolean haveSameName(Long id, String name);

    boolean updateEnabled(Long id, Integer enabled);

    List<FreeDelivery> listByEnabled();

}
